if (isDedicated) exitWith {};
waitUntil {!(isNull (findDisplay 46))};
waitUntil {EWDBStats_loaded == "true"};
waitUntil {!isNull player};
waitUntil {time > 0.1};

call EWDBStats_fnc_DBGet;
sleep 3;
if (isNil "EWDBStats") then{
call EWDBStats_fnc_DBAdd;
};
waitUntil {!isNil "EWDBStats"};

[] spawn { while {true} do {
	_shotsfired = shotsfired;
	["shotsfired",_shotsfired] call EWDBStats_fnc_DBTracker;
	call EWDBStats_fnc_Statstxt;
	shotsfired = 0;
	sleep 30;
	}
};